import request from '@/utils/request'

//列表
export function fetchList(params) {return request({url: '/${table.className?uncap_first}/page.do',method: 'get',params})}

//新增
export function create${table.className?cap_first}(params) {return request({url: '/${table.className?uncap_first}/save.do',method: 'post',params})}

//删除
export function delete${table.className?cap_first}(params) {return request({url: '/${table.className?uncap_first}/del.do',method: 'post',params})}

//详情
export function info${table.className?cap_first}(id) {return request({url: '/${table.className?uncap_first}/info.do',method: 'get',params: { id }})}

//更新
export function update${table.className?cap_first}(params) {return request({url: '/${table.className?uncap_first}/update.do',method: 'post',params})}

